<ion-header>
  <ion-navbar color="dark">
    <ion-title class="center w80">我发布的动态</ion-title>
  </ion-navbar>
</ion-header>


<ion-content>

  <ion-item *ngIf="sportDynamicList==undefined">
    <ion-label text-center="">亲,您还没有发布过任何动态哟</ion-label>
  </ion-item>
  <p *ngIf="sportDynamicList==undefined" text-center=""><a (click)="openPubSportDynamic()">点击发布</a></p>
  <ion-card *ngFor="let sportDynamic of sportDynamicList" (press)="deleteSportDynamic(sportDynamic.id)">
    <ion-item>
      <ion-avatar item-start>
        <img src="{{userFacePath}}/{{sportDynamic.userFace}}">
      </ion-avatar>
      <h2>{{sportDynamic.nickname}}
        <ion-icon *ngIf="sportDynamic.sex==1" ios="ios-female" md="md-female" class="female"></ion-icon>
        <ion-icon *ngIf="sportDynamic.sex==0" ios="ios-male" md="md-male" class="male"></ion-icon>
      </h2>
      <p>{{sportDynamic.crteateDatetime}}</p>
    </ion-item>
    <ion-card-content>
      <p>{{sportDynamic.sportDynamicContent}}</p>
    </ion-card-content>
  </ion-card>
</ion-content>
